NAME		=		UniServer

SOURCE		=		AModule.cpp				\
				ApiAudio.cpp				\
				ApiClient.cpp				\
				Api.cpp					\
				ApiNetwork.cpp				\
				ApiTime.cpp				\
				ASocket.cpp				\
				async.cpp				\
				audio.cpp				\
				client.cpp				\
				connection.cpp				\
				handler.cpp				\
				main.cpp				\
				MainModule.cpp				\
				manager.cpp				\
				network.cpp				\
				processor.cpp				\
				RotatingBuffer.cpp			\
				TcpServer.cpp				\
				TcpSocket.cpp				\
				time.cpp				\
				UdpBroadcastSocket.cpp			\
				UdpServer.cpp				\
				UdpSocket.cpp				\
				UniServer.cpp				\
				Player.cpp				\
				AudioModule.cpp				\
				StreamCircularBuffer.cpp		\

OBJS		=		$(SOURCE:.cpp=.o)

CPPFLAGS	+=		-std=c++0x -I ../UniSound\ Shared/. -g3

all		:		$(NAME)

$(NAME)		:		$(OBJS)
				g++ -std=c++0x $(OBJS) -o $(NAME) -lboost_system -lboost_thread -lboost_timer -lpthread -L ../UniSound\ Shared/. -lUnisound-shared -lopus -lportaudio -g3

clean		:		
				rm -rf $(OBJS)

fclean		:		clean
				rm -rf $(NAME)

re		:		fclean all

.PHONY		:		all clean fclean re
